﻿/*----------------------------------------------------------------
// Copyright (C) 2011 上海
// 版权所有。 
//
// 文件名：BackOfCardVM
// 文件功能描述：退卡销户models层
//
// 
// 创建标识：2012-02-21 王冲
//
// 修改标识：
// 修改描述：
//
//
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace WaiGaoQiaoWeb.Models
{
    public class BackOfCardVM
    {
        /// <summary>
        /// 人员ID
        /// </summary>
        public int PID
        {
            get;
            set;
        }
        [Display(Name = "人员编号")]
        /// <summary>
        /// 人员编号
        /// </summary>
        public string EmpNo
        {
            get;
            set;
        }
        [Display(Name = "部门名称")]
        /// <summary>
        /// 部门名称
        /// </summary>
        public string deptName
        {
            get;
            set;
        }
        [Display(Name = "卡类型")]
        /// <summary>
        /// 卡类型(人员类型)
        /// </summary>
        public string PersonTypeName
        {
            get;
            set;
        }
        [Display(Name = "人员姓名")]
        /// <summary>
        /// 人员姓名
        /// </summary>
        public string PName
        {
            get;
            set;
        }
        /// <summary>
        /// 部门编号
        /// </summary>
        public int Dep_ID
        {
            get;
            set;
        }
        [Display(Name = "注销类型")]
        /// <summary>
        /// 注销类型（1：有卡销户 2：无卡销户 3：自动离职）
        /// </summary>
        public int LOGOUTTYPE
        {
            get;
            set;
        }
        [Display(Name = "卡序列号")]
        /// <summary>
        /// 卡序列号
        /// </summary>
        public Int64 CardSerial
        {
            get;
            set;
        }
        [Display(Name = "卡状态")]
        /// <summary>
        /// 卡状态
        /// </summary>
        public string Status
        {
            get;
            set;
        }
        [Display(Name = "工作状态")]
        /// <summary>
        /// 工作状态
        /// </summary>
        public string WorkStatus
        {
            get;
            set;
        }
        [Display(Name = "消费余额")]
        //[Remote("CheckBalance", "BackOfCard", AdditionalFields = "Balance", HttpMethod = "POST", ErrorMessage = "卡内余额不能大于0")]
        /// <summary>
        /// 消费余额
        /// </summary>
        public decimal Balance
        {
            get;
            set;
        }
        [Display(Name = "押金")]
        /// <summary>
        /// 押金
        /// </summary>
        public decimal CardOptDeposit
        {
            get;
            set;
        }
        [Display(Name = "退消费余额")]
        /// <summary>
        /// 退消费余额
        /// </summary>
        public decimal BalanceBack
        {
            get;
            set;
        }
        [Display(Name = "折旧费")]
        [Remote("CheckOldMoney", "BackOfCard", AdditionalFields = "OldMoney,CardOptDeposit", HttpMethod = "POST", ErrorMessage = "折旧费不能大于押金且不能小于0")]
        /// <summary>
        /// 折旧费
        /// </summary>
        public decimal OldMoney
        {
            get;
            set;
        }
        [Display(Name = "实退押金")]
        /// <summary>
        /// 实退押金
        /// </summary>
        public decimal CardOptDepositBack
        {
            get;
            set;
        }

        public int GroupIdDept
        {
            get;
            set;
        }
    }
}